package com.xr.controller;

import lombok.extern.slf4j.Slf4j;
import oracle.jrockit.jfr.VMJFR;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @RestController类里所有方法都返回JSON数据
 */



@Slf4j
@RestController
public class HelloController {

    private static final Logger log = LoggerFactory.getLogger(HelloController.class);


    @RequestMapping("hello")
    public String hello(){

        log.debug("debug...");
        log.info("info...");
        log.warn("warn...");
        log.error("error...");
        System.out.println("哈哈哈");
        return "hello springboot!!!";
    }

}
